﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace Kiel.Pdf
{
	/// <summary>
	/// Represents a PDF Array Object.
	/// </summary>
	class PdfArray : Collection<IPdfObject>, IPdfObject
	{
		private List<PdfIndirectObjectReference> list;

		public PdfArray()
		{ }

		public PdfArray(IList<IPdfObject> list)
			: base(list)
		{ }

		public override string ToString()
		{
			StringBuilder text = new StringBuilder("[");
			foreach (IPdfObject obj in this)
				text.AppendFormat(obj.ToString());
			text.Append("]");
			return text.ToString();
		}
	}
}
